import request from '@/utils/request'

export function listuseHead(query) {
  return request({
    url: '/material/useHead/list',
    method: 'get',
    params: query
  })
}

export function createuseHead(data) {
  return request({
    url: '/material/useHead/create',
    method: 'post',
    data
  })
}

export function readuseHead(data) {
  return request({
    url: '/material/useHead/get/' + data.id,
    method: 'get'
  })
}

export function updateuseHead(data) {
  return request({
    url: '/material/useHead/update',
    method: 'post',
    data
  })
}

export function checkAdd(data) {
  return request({
    url: '/material/useHead/checkAdd',
    method: 'get',
    params: data
  })
}


export function deleteuseHead(data) {
  return request({
    url: '/material/useHead/delete/' + data.fbillno,
    method: 'delete'
  })
}

export function glgtzList(data){
  return request({
    url: '/material/tsControlbox/glgtzList',
    method: 'GET',
    params: data
  })
}